home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
nt
/
ntwhich.zip
/
NTWHICH.H
< prev
next >
Wrap
Text File
|
1994-07-24
|
1KB
|
33 lines
/* ntwhich.h ... find first matching executable in path
* Copyright (C) 1994 by
* jack j. woehr, p.o. box 51, golden, colorado 80402-0051
* jax@well.sf.ca.us JAX on GEnie 72203.1320@compuserve.com
* SYSOP, RealTime Control & Forth Board [RCFB] (303) 278-0364
* All Rights Reserved
*/
#define aFileNotFound 8 /* return this if any which'ed file isn't found */
#define buffSize 16384 /* oughta be enuff! */
#define pathSize 4096 /* ditto */
#define MAX(a,b) a > b ? a : b
#define LICENSE "Copyright 1994, Jack J. Woehr, All Rights Reserved."
#define LICENSE1 "You may redistribute and modify under certain conditions; see COPYING.TXT."
#define LICENSE2 "COPYING.TXT is the GNU Public License, Version 2."
#define USAGE "<-l | -L | /l | /L | -h | -H | /H | /?> [filename, filename, filename, ...]"
#define USAGE1 "Finds first occurrence in %PATH% of filename.COM,.EXE,.BAT., or .CMD"
#define USAGE2 "in that order. If 'filename' has .<any>, finds specific file in %PATH%."
#define USAGE3 "The -H option gives this help. The -L option gives the license."
/*
* Prototypes
*/
int which ( char * );
int dotwhich ( char * );
/* End of which.h */